package com.hzit.bj1804.dian.entity;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * MEMBERPAY
 * @author 
 */
public class Memberpay implements Serializable {
    private Integer memberid;

    private String cardnumber;

    private String cardholdername;

    private String idtype;

    private String idnumber;

    private static final long serialVersionUID = 1L;

    public Integer getMemberid() {
        return memberid;
    }

    public void setMemberid(Integer memberid) {
        this.memberid = memberid;
    }

    public String getCardnumber() {
        return cardnumber;
    }

    public void setCardnumber(String cardnumber) {
        this.cardnumber = cardnumber;
    }

    public String getCardholdername() {
        return cardholdername;
    }

    public void setCardholdername(String cardholdername) {
        this.cardholdername = cardholdername;
    }

    public String getIdtype() {
        return idtype;
    }

    public void setIdtype(String idtype) {
        this.idtype = idtype;
    }

    public String getIdnumber() {
        return idnumber;
    }

    public void setIdnumber(String idnumber) {
        this.idnumber = idnumber;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        Memberpay memberpay = (Memberpay) o;

        if (memberid != null ? !memberid.equals(memberpay.memberid) : memberpay.memberid != null) return false;
        if (cardnumber != null ? !cardnumber.equals(memberpay.cardnumber) : memberpay.cardnumber != null) return false;
        if (cardholdername != null ? !cardholdername.equals(memberpay.cardholdername) : memberpay.cardholdername != null)
            return false;
        if (idtype != null ? !idtype.equals(memberpay.idtype) : memberpay.idtype != null) return false;
        return idnumber != null ? idnumber.equals(memberpay.idnumber) : memberpay.idnumber == null;
    }

    @Override
    public int hashCode() {
        int result = memberid != null ? memberid.hashCode() : 0;
        result = 31 * result + (cardnumber != null ? cardnumber.hashCode() : 0);
        result = 31 * result + (cardholdername != null ? cardholdername.hashCode() : 0);
        result = 31 * result + (idtype != null ? idtype.hashCode() : 0);
        result = 31 * result + (idnumber != null ? idnumber.hashCode() : 0);
        return result;
    }

    @Override
    public String toString() {
        return "Memberpay{" +
                "memberid=" + memberid +
                ", cardnumber='" + cardnumber + '\'' +
                ", cardholdername='" + cardholdername + '\'' +
                ", idtype='" + idtype + '\'' +
                ", idnumber='" + idnumber + '\'' +
                '}';
    }
}